package main

import (
	"github.com/gin-gonic/gin"
	"net/http"
	"xinwen/router"
)

func main() {

	r := router.Init()
	// 1.创建路由
	r = gin.Default()
	r.GET("/", func(c *gin.Context) {
		c.String(http.StatusOK, "hello world")
	})

	r.Run(":8000")
}
